<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SCRM1400</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/style.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/atributos.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/botoes.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap-theme.min.css">
<script src="${pageContext.request.contextPath}/resources/antigo/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/antigo/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/antigo/js/sispfuncoes.js"></script>
<script type="text/javascript">
	botoes = "1001000000";

	function validateForm() {
		 jtipo = document.getElementById("jtipo").value;
		 faseproc = document.getElementById("faseproc").value;


			if(jtipo != 1  && faseproc != ''){	
				if (confirm("CONFIRMACAO (S/N) ?") == true) {
					document.getElementById("jconf").value = "S";
					return true;
				} else {
					document.getElementById("jconf").value = "N";
					return false;
				}
		
			}		
	}
</script>
</head>
<body onunload="" onkeydown="return voltar('${pageContext.request.contextPath}/antigo/scrp1500/executar', event);">
	<form id="form" action="${scrm1400.navegar}" onsubmit="return validateForm();" method="post">
		<jsp:include page="/resources/antigo/include/header.jsp" />
		<div id="conteudo">
			<div class="content">
				<center>
					<div id="container" style="height: auto; width: 800px; float: inherit;">
						<div id="espaco" style="height: 75%; width: 100%; margin: 0 auto;">
							<br />
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">GEJUSP</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label"> - GERENCIA DA JUSTICA, SEGURANCA PUBLICA E CIDADANIA</label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">VER.: ${versao}</label>
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">SISP</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label">- SISTEMA DE INFORMACOES DE SEGURANCA PUBLICA / CRIMINAL </label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">${dataCorrente}</label>
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label"> MODULO DE USUARIOS </label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label">${scrm1400.jfuncaoj}</label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">${horaCorrente}</label>
								</div>
							</div>
							<input type="hidden" id="jtipo" onkeypress="return somenteNumero(event)"  name="scrm1400.jtipo" readonly class="form-control input-cb" value="${scrm1400.jtipo}" maxlength="1" size="1" />
							<br />
							<div class="row">
								<label class="control-label mensagem">${scrm1400.mensagem}</label>
							</div>
							<br />
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 100px; float: left">
									<label class="control-label"> </label>
								</div>
								<div align="left" class="col-lg-4" style="width: 150px; float: left">
									<label class="control-label">Nome do Usuario:</label>
								</div>
								<div align="left" class="col-lg-4" style="width: 310px; float: left">
									<input type="text" id="jnomecadastrado" name="scrm1400.jnomecadastrado" class="form-control input-cb" value="${scrm1400.jnomecadastrado}" maxlength="30" size="30" />
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 100px; float: left">
									<label class="control-label"> </label>
								</div>
								<div align="left" class="col-lg-1" style="width: 150px; float: left">
									<label class="control-label">Matricula:</label>
								</div>
								<div align="left" class="col-lg-1" style="width: 100px; float: left">
									<input type="text" id="jmatriculacadastrado" onkeypress="return somenteNumero(event)" name="scrm1400.jmatriculacadastrado" class="form-control input-cb" value="${scrm1400.jmatriculacadastrado}" maxlength="7" size="7" />
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 100px; float: left">
									<label class="control-label"> </label>
								</div>
								<div align="left" class="col-lg-1" style="width: 150px; float: left">
									<label class="control-label">Senha:</label>
								</div>
								<div align="left" class="col-lg-1" style="width: 100px; float: left">
									<input type="password" id="jsenhacadastrado" name="scrm1400.jsenhacadastrado" class="form-control input-cb" value="${scrm1400.jsenhacadastrado}" maxlength="7" size="7" />
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 100px; float: left">
									<label class="control-label"> </label>
								</div>
								<div align="left" class="col-lg-1" style="width: 150px; float: left">
									<label class="control-label">Nivel de Acesso:</label>
								</div>
								<div align="left" class="col-lg-1" style="width: 310px; float: left">
									<select id="jopcao" class="form-control input-cb" name="scrm1400.jopcao">
										<option value="0" ${scrm1400.jopcao eq '0'? 'selected' : ''}>0 - Nao Permitido</option>
										<option value="1" ${scrm1400.jopcao eq '1'? 'selected' : ''}>1 - Consulta</option>
										<option value="4" ${scrm1400.jopcao eq '4'? 'selected' : ''}>4 - Consulta/Inclui/Altera</option>
										<option value="9" ${scrm1400.jopcao eq '9'? 'selected' : ''}>9 - Consulta/Inclui/Altera/Exclui/Autoriza</option>
									</select>
								</div>
								<input type="hidden" id="jseuniveltxt" name="scrm1400.jseuniveltxt" readonly class="form-control input-cb" value="${scrm1400.jseuniveltxt}" maxlength="22" size="22" />
								<input type="hidden" id="jseunivel" name="scrm1400.jseunivel" readonly class="form-control input-cb" value="${scrm1400.jseunivel}" maxlength="2" size="2" />
							</div>
							<div class="row" align="right" style="width: 800px">
								<input type="submit" class="btn btn-default" value="Processar"  />
							</div>
							<br />
							<br />
							<br />
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 300px; float: left">
									<label class="control-label">Cadastrado por: ${scrm1400.jmatriculacadastrou} - ${scrm1400.jnomecadastrou}</label>
								</div>
								<div align="right" class="col-lg-1" style="width: 300px; float: right">
									<label class="control-label">Em: ${scrm1400.jdia}/${scrm1400.jnomedomes}/${scrm1400.jano} As: ${scrm1400.jhoras}</label>
								</div>
							</div>
							<label class="corpo_c">______________________________________________________________________________________________________________________________________</label>
							<div class="row">
								<div align="center" class="col-lg-4" style="width: 200px; float: left">
									<label class="control-label">ESC p/ Voltar</label>
								</div>
								<div align="center" class="col-lg-1" style="width: 430px; float: left">
									<label class="control-label">${empresa} - ${programa}</label>
								</div>
								<div align="center" class="col-lg-1" style="width: 200px; float: right">
									<label class="control-label">CTRL + Z p/ Sair</label>
								</div>
							</div>
							<input type="hidden" id="jconf" name="scrm1400.jconf" class="form-control input-cb" value="${scrm1400.jconf}" maxlength="1" size="1" />
							<input type="hidden" id="faseproc" name="scrm1400.faseproc" class="form-control input-cb" value="${scrm1400.faseproc}" maxlength="1" size="1" />
							<input type="hidden" id="funcao" name="scrm1400.funcao" value="${ scrm1400.funcao }" maxlength="1" size="1" />
							<input type="hidden" id="campofocus" name="scrm1400.cfaseprocampofocus" value="${ scrm1400.campofocus }" maxlength="30" size="30" />
							<input type="hidden" id="navegar" name="scrm1400.navegar" value="${ scrm1400.navegar }" />
						</div>
					</div>
				</center>
			</div>
		</div>
		<jsp:include page="/resources/antigo/include/footer.jsp" />
	</form>
</body>
</html>
